package com.qf.lanzhou.blog.api.service.impl.login;
import com.qf.lanzhou.blog.api.dao.AuditDao;
import com.qf.lanzhou.blog.api.dao.Impl.login.AuditDaoImpl;
import com.qf.lanzhou.blog.api.service.InitPasswordFailAuditService;

/**
 * @author LEON-HE
 */
public class InitPasswordFailAuditServiceImpl implements InitPasswordFailAuditService {
private AuditDao auditDao = new AuditDaoImpl();
    @Override
    public void processAudit(Long auditId) {
            if (auditDao.updateFailAudit(auditId)){
                return;
            }else {
                throw new RuntimeException("系统繁忙，更新失败");
            }
    }
}
